
app:registClass("NewActivityDungeonsController", "app.activityDungeons.controllers.NewActivityDungeonsController")
app:registClass("LionHornController", "app.activityDungeons.controllers.LionHornController")
app:registClass("ChampionCopyController", "app.activityDungeons.controllers.ChampionCopyController")

local NewActivityDungeonsModel = import(".models.NewActivityDungeonsModel")
app:registInst(NewActivityDungeonsModel.new())

app:registInst(app:getClass("NewActivityDungeonsController").new({type="systemUI"}))
app:registInst(app:getClass("LionHornController").new({type="world", zOrder=SceneZOrder.desktopZOrder}))
app:registInst(app:getClass("ChampionCopyController").new({type="world", zOrder=SceneZOrder.desktopZOrder}))


local model = app:getInst("NewActivityDungeonsModel")

------------------------------------------------>>>>>> 世界活动副本相关
-- 世界活动结算通知
app.session:on("pb_worldevent.S2C_WorldEventResultNotify",function(ret)
	-- dump( ret, " ------------------->>>> S2C_WorldEventResultNotify" )
	model:onActivityDungeonsEnd( ret )
end)

-- 狮心号角回合结算通知
app.session:on("pb_lionhearthorn.S2C_LionHeartHornRoundEnd",function(ret)
	-- dump( ret, " ------------------->>>> S2C_LionHeartHornRoundEnd" )
	model:onLionHornRoundEnd( ret )
end)

-- 战斗结束监听
app.session:on("pb_map.S2C_BattleEnd",function(ret)
	model:onBattleEnd()
end)

-- 冠军赛 未经战斗直接获胜消息
app.session:on("pb_throne.S2C_ThroneBattleWin", function(msg)
	print("S2C_ThroneBattleWin")
	app:sendMsg("NewActivityDungeonsModel", "onChampionWinDirectly")
end)
